<template>
  <div class="fuyong">
    <div class="fu_flex">
      <h2>{{ mess.title }}</h2>
      <span>更多》</span>
    </div>
    <div class="fu_leftflex">
      <div v-for="(item, index) in mess.fuyong" :key="index" class="fuji">
        <div>
          <div class="bg_img">
            <img :src="mess.bg_img" alt="" />
          </div>
          <div class="fuyong_img">
            <img :src="item.img" alt="" />
          </div>
        </div>
        <div class="shuzhe">
          <p>{{ item.usname }}</p>
          <p class="hui">{{ item.name }}</p>
        </div>
      </div>
    </div>
  </div>
</template>
<script>
export default {
  name: "Fuyong",
  props: ["mess"],
};
</script>
<style lang="less" scoped>
.fuyong {
  width: 1400px;
  margin: 0 auto;
  .fu_flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
  }
  .fu_leftflex {
    display: flex;
    flex-wrap: wrap;
    .fuji {
      width: 20%;
      height: 280px;
      position: relative;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      margin-bottom: 20px;
      .shuzhe {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        p {
          width: 225px;
          overflow: hidden;
          font-size: 14px;
        }
        .hui {
          color: #ccc;
        }
      }
      .bg_img {
        position: absolute;
        top: 0;
        right: 30px;
        z-index: 0;
      }
      .fuyong_img {
        width: 216px;
        height: 216px;
        display: flex;
        justify-content: center;
        align-items: center;
        position: absolute;
        img {
          width: 100%;
        }
      }
    }
  }
}
</style>
